package com.kingdee.eas.hr.ats.web.handler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kingdee.bos.BOSException;
import com.kingdee.bos.metadata.entity.FilterInfo;
import com.kingdee.bos.metadata.entity.FilterItemInfo;
import com.kingdee.bos.metadata.query.util.CompareType;
import com.kingdee.shr.base.syssetting.exception.SHRWebException;
import com.kingdee.shr.base.syssetting.web.handler.ListHandler;

public class AtsShiftBatchF7ListHandler extends ListHandler{
	protected FilterInfo getDefaultFilter(HttpServletRequest request, HttpServletResponse response) throws SHRWebException {
		FilterInfo filterInfo = super.getDefaultFilter(request, response);
		if (null == filterInfo) {
			filterInfo = new FilterInfo();
		}
		String uipk = request.getParameter("uipk");
		FilterInfo defaultFilter = new FilterInfo();
		if ("shr.ats.app.AtsShiftBatch.F7".equals(uipk)) {
			FilterInfo stateFilter = new FilterInfo();
			stateFilter.getFilterItems().add(new FilterItemInfo("state", 1, CompareType.EQUALS));
			try {
				defaultFilter.mergeFilter(stateFilter, "AND");
			} catch (BOSException var10) {
				var10.printStackTrace();
			}
		}
		return defaultFilter;
	}
}
